package com.cjl.leetcode.editor.cn;

import java.util.ArrayList;
import java.util.List;

class Node {
    public int val;
    public Node left;
    public Node right;
    public Node next;
    public List<Node> neighbors;
    //P133 图相关题Node
    public Node() {
        val = 0;
        neighbors = new ArrayList<Node>();
    }
    //P133 图相关题Node
    public Node(int _val) {
        val = _val;
        neighbors = new ArrayList<Node>();
    }
    //二叉树等题Node
//    public Node() {}
//
//    public Node(int _val) {
//        val = _val;
//    }

    public Node(int _val, Node _left, Node _right, Node _next) {
        val = _val;
        left = _left;
        right = _right;
        next = _next;
    }
}
